﻿using Abp.AutoMapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NavGuide.Guide.Dtos
{
    [AutoMap(typeof(Navigation))]
    public class NavigationDto
    {
        public string Id { get; set; }
        public string Name { get; set; }

        public string DisplayName { get; set; }

        public string Icon { get; set; }

        public string Url { get; set; }

        public int Order { get; set; }

        public bool IsLeaf { get; set; }

        public string Account { get; set; }

        public string Key { get; set; }

        public List<NavigationDto> Items { get; set; }
         
        public string ParentId { get; set; }

        public bool IsEditMode { get { return !string.IsNullOrWhiteSpace(Id); } }
    }
}
